<?php session_start(); ?>
<html>
	<head>
		<title>Jamkesda Kabupaten Berau</title>
		<link rel="shortcut icon" href="asset/images/icon.png" type="image/x-icon">
	</head>
	<body>
		<?php
			echo "<link href='asset/css/login.css' rel='stylesheet' type='text/css'>";
			if(empty($_SESSION['id_pengguna'])){
		?>
				<div id=box_login>
						<div id=top_login>Login Area</div>
						<div id=line1></div>
						<div id="welcome">
							Selamat Datang di Aplikasi SIM Jamkesda.<br>
							Silahkan memasukkan Username dan Password.
						</div>
						<form action="login.php" onsubmit="return gsValidate('username|pass','Username Harus Diisi|Password Harus Diisi','required|required');" method="post">
							<table align=center>
								<tr>
									<td width=25%>Username</td>
									<td width=75%><input type=text name=username class=input_field></td>
								</tr>
								<tr>
									<td>Password</td>
									<td><input type=password name=pass class=input_field></td>
								</tr>
								<tr>
									<td colspan=2 align=center>
										<input type=submit name=submit value=Login class=submit_btn
									</td>
								</tr>
							</table>
						</form>
					</div>
		<?php
			}else{
				echo "<meta http-equiv='refresh' content='0; url=utama.php'>"; 
			}
		?>
		<div id="showGsAlert"></div>
	</body>
</html>
